#ifndef HOUSEIN_H
#define HOUSEIN_H

#include <QDialog>
#include <QSqlDatabase>
#include <QDataWidgetMapper>
#include <QSqlTableModel>
#include <QSqlRecord>
#include <QSqlQuery>
#include <QDebug>
#include <QSqlError>
#include <QMessageBox>
namespace Ui {
    class Housein;
}

class Housein : public QDialog {
    Q_OBJECT
public:
    Housein(QString cmd,QWidget *parent = 0);
    ~Housein();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::Housein *ui;
    QDataWidgetMapper *maper;
    QSqlDatabase conn;
    QSqlTableModel *model;
    void initui();
    QString nextid();
private slots:
    void on_pushButton_clicked();
};

#endif // HOUSEIN_H
